package com.inspur.attendance.Service;

import com.inspur.attendance.Entity.Department;
import com.inspur.attendance.Entity.User;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {
    Page<User> getPage(int pageNo, int pageSize) throws Exception;

    boolean delUser(Long id) throws Exception;

    List<User> findUserByName(String name) throws Exception;

    List<Department> getDepartmentId() throws Exception;

    void saveUser(User user) throws Exception;

    void editUser(User user, String departmentId) throws Exception;

    List<User> findAll() throws Exception;

    User findByAccount(String account) throws Exception;
}
